- sudo make install
- cd ../../
script:
- - splint *.c
+ - make test
+ - CFLAGS="-Werror -std=gnu89" && make
OS := $(shell uname)
ifeq ($(OS),Darwin)
-CRYPT :=
+CRYPT :=
UUID :=
else
CRYPT := -lcrypt
UUID := -luuid
endif
-# Add inputs and outputs from these tool invocations to the build variables
+# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: siridb-server
.SECONDARY:
-include ../makefile.targets
+
+test:
+ -@cd ../test && ./test.sh
\ No newline at end of file
OS := $(shell uname)
ifeq ($(OS),Darwin)
-CRYPT :=
+CRYPT :=
UUID :=
else
CRYPT := -lcrypt
UUID := -luuid
endif
-# Add inputs and outputs from these tool invocations to the build variables
+# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: siridb-server
siridb-server: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
- gcc -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID)
+ gcc -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID)
@echo 'Finished building target: $@'
@echo ' '
.SECONDARY:
-include ../makefile.targets
+
+test:
+ -@cd ../test && ./test.sh
\ No newline at end of file
imap_t * imap_new(void);
void imap_free(imap_t * imap, imap_free_cb cb);
int imap_set(imap_t * imap, uint64_t id, void * data);
-int imap_add(imap_t * imap, uint64_t id, void * data);
+unsigned int imap_add(imap_t * imap, uint64_t id, void * data);
void * imap_get(imap_t * imap, uint64_t id);
void * imap_pop(imap_t * imap, uint64_t id);
int imap_walk(imap_t * imap, imap_cb cb, void * data);
+++ /dev/null
-test:
- @cd ../test && ./test.sh
* In case of a memory error we return -1. When the id already exists -2 will
* be returned.
*/
-int imap_add(imap_t * imap, uint64_t id, void * data)
+unsigned int imap_add(imap_t * imap, uint64_t id, void * data)
{
#if DEBUG
/* insert NULL is not allowed */